<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<a href="/food/add">添加美食</a>
		<a><p th:text="${session.users1.uname}"></p>欢迎登录</a>
		<table border="1">
			<tr>
				<td>编号</td>
				<td>名称</td>
				<td>图片</td>
				<td>分类</td>
				<td>编辑</td>
			</tr>
			<tr th:each="food:${foodList}">
				<td th:text="${food.fid}"></td>
				<td th:text="${food.fname}"></td>
				<td><img th:src="@{|/${food.fimage}|}" width="30px"></td>
				<td th:text="${food.type.tname}"></td>
				<td><a th:href="@{/food/deletefood(fid=${food.fid})}">删除</a>
					<a th:href="@{/food/toUpdate(fid=${food.fid})}">修改</a>
				</td>

			</tr>
		</table>
	</body>
</html>
